package fresher.java.finaltest.entity;

public class Worker extends Bee {

	public Worker() {
		super("Worker");
	}

	@Override
	public boolean damage(int value) {
		float currentHeath=this.getHealth()-value;
		if(currentHeath<70){
			setHealth(currentHeath);
			return true;
		}
		setHealth(currentHeath);
		return false;
	}

	@Override
	public String toString() {
		return this.name;
	}

}
